import axios from '@/libs/api.request.js'

export const getList = data => {
    return axios.request({
        method:'post',
        data:data,
        url:'school/getList'
    });
};

export const save = data => {
    return axios.request({
        method:'post',
        data:data,
        url:'school/save'
    });
};

export const getCurriculumChildrenBySchool = () => {
    return axios.request({
        method:'get',
        data:null,
        url:'school/getCurriculumChildrenBySchool'
    });
};

export const getBooksChildrenBySchool = () => {
    return axios.request({
        method:'get',
        data:null,
        url:'school/getBooksChildrenBySchool'
    });
};

export const getChapterChildrenBySchool = () => {
    return axios.request({
        method:'get',
        data:null,
        url:'school/getChapterChildrenBySchool'
    });
};


export const getClassesChildrenBySchool = () => {
    return axios.request({
        method:'get',
        data:null,
        url:'school/getClassesChildrenBySchool'
    });
};